Allow character set override when sending to Garmins.
authorrobertl <robertl>
Sun, 24 Jan 2010 15:55:55 +0000 (15:55 +0000)
committerrobertl <robertl>
Sun, 24 Jan 2010 15:55:55 +0000 (15:55 +0000)
garmin.c

index f7f47d4ad52b87e4d0fe5b75a4bb21b7e7e57429..5e1288c3f9613c87808c7e2dac255376b6d1235e 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -230,8 +230,12 @@ rw_init(const char *fname)
                fprintf(stderr, "Waypoint category type: %d\n",
                gps_category_type);
        }
-
        }
+
+       // Allow override of sent character set for internationalized GPSes.
+       if (global_opts.charset != &cet_cs_vec_utf8)
+               receiver_charset = xstrdup(global_opts.charset_name);
+
        /*
         * If the user provided a short_length, override the calculated value.
         */